package com.jar.exercise.io.Properties类;

import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

/**
 * @author ZhangShengHao
 * @className Demo
 * @description TODO
 * @date 2020/2/3 11:24
 */
public class Demo {
	public static void main(String[] args) throws IOException {
		Properties properties = new Properties();
		String filename = "D:\\Study\\IDEA\\vue\\Demo\\src\\io\\Properties类\\test.txt";
		properties.load(new FileReader(filename));
		properties.setProperty("啦", "asdf");
		FileWriter fw = new FileWriter(filename);
		properties.store(fw, "hah");

	}
}
